package com.example.demo.dao.user;

import com.example.demo.po.task.Task;
import com.example.demo.vo.user.WorkerTaskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkerTaskDao {
    Integer insertWorkerTask(@Param(value = "uid")Integer uid,@Param(value = "tid")Integer tid);

    List<Task> selectTaskSimpleByWorker(String username, @Param("pageNumKey") int pageNum, @Param("pageSizeKey") int pageSize);

    Integer selectTaskSimpleCountByWorker(String username);

    Integer selectTakeTaskStateByWorker(@Param(value = "username") String username,@Param(value = "tid") Integer tid);

    void updateTakeTaskState(WorkerTaskVO workerTaskVO);
}
